import qs from "querystring"
const appkey = "demo13_1545210570249"

export async function findTeacher({ page = 1, limit = 10, key = "", sex = -1, size = 10 } = {}) {
        const resp = await fetch(`/api/teacher/findTeacher?appkey=${appkey}&page=${page}&limit=${limit}&search=${key}&sex=${sex}&size=${size}`)
            .then(resp => resp.json()).then(resp => resp.data);
        resp.datas = resp.data;
        delete resp.data;
        return resp;
}

